#include<stdio.h>
#include<stdlib.h>

#ifndef _PPM_H_
#define _PPM_H_

using namespace System::Drawing;

class TPPM {
    private:
        
    public:
        bool Colorized;
        bool GrigLines;
        bool ReCreate;
        int Zoom;
        TPPM(void);
        ~TPPM(void);
        int GetColorF(float f);
        float GetFColor(int RorGorB);
        int SaveAsPPM(const char* fname, float* pY, int row, int col);
        int GetColRowPPM(char* fname, int* col, int* row);
		int GetColPPM(char* fname);
		int GetRowPPM(char* fname);
		float f(float s, int dl);
        int LoadFromPPM(char* fname, float* pY, int srow, int scol);
};

#endif
